<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_Inventory_Frames extends Module {

        public function body() {
            $rboframes_recordset = new Eyeworx_Inventory_Frames_RBO_RBOFrames();
            $this->display_module($rboframes_recordset->create_rb_module($this));
        }

        public function caption() {
            return 'Frames';
        }

        public function frames_import_addon($r)
        {
            $ai_recordset = new Eyeworx_Inventory_FramesImport_RBO_RBOFramesImport();
            $rb = $ai_recordset->create_rb_module($this);
            $this->display_module($rb, array(array("frame"=>$r['id']), array("frame"=>false, "date_imported"=>true, "quantity"=>true), array()), 'show_data');
        }

    }
?>